#ifndef PROGRESSBAR_H
#define PROGRESSBAR_H

#include <QWidget>

namespace Ui {
class ProgressBar;
}

class ProgressBar : public QWidget
{
    Q_OBJECT

public:
    explicit ProgressBar(QWidget *parent = nullptr);
    ~ProgressBar();

    double getPercentage() const;
    void setPercentage(double newPercentage);

private:
    Ui::ProgressBar *ui;
    double percentage = 0.0;  //(0-1)
    double curPercentage = 0.0;


    // QWidget interface
protected:
    virtual void paintEvent(QPaintEvent *event) override;
};

#endif // PROGRESSBAR_H
